package com.tanhua.dubbo.api;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.tanhua.model.domain.User;
import com.tanhua.model.domain.UserInfo;

/**
 * Created by Fausto on 2021/9/27 19:44
 */
public interface BlackListApi {
    /**
     * 分页查询黑名单列表
     * @param userId
     * @param page
     * @param size
     * @return
     */
    IPage<UserInfo> findByUserId(Long userId, int page, int size);

    /**
     * 取消黑名单设置
     * @param userId
     * @param blackUserId
     */
    void delete(Long userId, Long blackUserId);

}
